

#import "TextureManager.h"


@implementation TextureManager
static TextureManager* sharedTextureMng = nil;




+ (TextureManager*)sharedTextureManager
{
    if (sharedTextureMng == nil) {
        sharedTextureMng = [[super allocWithZone:NULL] init];
    }
    return sharedTextureMng;
}


+ (id)allocWithZone:(NSZone *)zone {
    return [[self sharedTextureManager] retain];
}

- (id)copyWithZone:(NSZone *)zone {
    return self;
}

- (id)retain {
    return self;
}

- (NSUInteger)retainCount {
    return NSUIntegerMax;  //denotes an object that cannot be released
}

- (void)release {
    //do nothing
}

- (id)autorelease {
    return self;
}

@end
